<?php require_once('include/header.php'); ?>
<?
require_once("admin/classes/mail.php");

if($_POST['submit'] != "" && $_POST['name'] != "" && $_POST['email'] != "" && $_POST['feedback'] != "" ){

$gblAdminEmail = "support@eparinay.com";

$gbl_request_email = "support@eparinay.com";

	$subject = "eParinay.com: Received Feedback from the site.";

	$body = "Requirement details from www.eParinay.com:<BR>";

	$body .= "<BR>Name:".$_POST['name'];


	$body .= "<BR>Telephone No:".$_POST['telephone_number'];

	$body .= "<BR>City:".$_POST['city'];

	$body .= "<BR>Query:".nl2br($_POST['feedback']);

	$body .= "<BR>";

	$header = "From: ".$_POST['email']."\r\n";

	$header .= "MIME-Version: 1.0\r\n";

	$header .= "Content-type: text/html; charset=iso-8859-1\r\n";

	if($gblAdminEmail){

		//mail_new(<to>,<subject>,<body_mail>,<header>,<from>,<CC>);

		mail_new($gbl_request_email,$subject,$body,$header,$_POST['email'],"purabdk@yahoo.co.in");



		$mesg = "Thank You !! for submitting your Feedback. We will be get back to you soon.";

	} else {

		$mesg ="An error has occured !! Please try again.";

	}

}

?>

      <div id="middle_container_for_innerpage">
      <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div> 
      <div id="middle_inner_container">
      <?php require_once('include/left_menu.php'); ?>
        
        <div id="inner_page_middle_data">
        	<div id="page_heading">Feedback</div>
 			<div id="feedback_row" style="height:5px; padding:0px;">
				<? if($mesg){ ?>
                <?=$mesg?>
                <? } else { ?>
            </div>
            <div id="feedback_margins">       
			<div id="feedback_form_container">
            	<form action="feedback.php" method="POST" name="frmrequest" id="frmrequest">
					<div id="feedback_row">
                    	<div id="feedback_row_text">Name:<span class="red-txt">*</span></div>
						<div id="feedback_row_fields"><input type="text" name="name" maxlength="100" class="textbox" style="width:250px" onKeyPress="return ValidateAlphaNumeric(this,event);"></div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">Email:<span class="red-txt">*</span></div>
                        <div id="feedback_row_fields"><input type="text" name="email" maxlength="100" class="textbox" style="width:250px"></div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">Contact No.:<span class="red-txt">*</span></div>
						<div id="feedback_row_fields"><input type="text" name="telephone_number" maxlength="25" class="textbox" style="width:250px" onKeyPress="return ValidateNumeric(this,event);"></div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">City:<span class="red-txt">*</span></div>
						<div id="feedback_row_fields"><input type="text" name="city" maxlength="50" class="textbox" style="width:250px" onKeyPress="return ValidateAlphaNumeric(this,event);"> <a href="#" class="link5"></a></div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">Feedback:<span class="red-txt">*</span></div>
					  <div id="feedback_row_fields"><textarea name="feedback" class="textbox" id="feedback" style="height:50px; width:250px;"></textarea></div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">&nbsp;</div>
                        <div id="feedback_row_fields">
                        	<div id="button_border"><input name="submit" type="submit" class="button" id="submit" value="submit" />
                       	  </div>
                        </div>
                    </div>
				</form>
			</div>
            </div>






<div id="code"><?}?></div>

        </div>
        

       
       
      </div> 
      <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
    </div> 
      <!-- middle_container ends -->
    
    
        
    
<?php require_once('include/footer.php'); ?>
